<?php


namespace app\common\model;


use think\Model;

class Talent extends Model
{
    protected $autoWriteTimestamp = 'int';
    protected $updateTime = false;

    protected $append = ['title'];

    public function getTitleAttr($value, $data)
    {
        if ($data['title_id']) {
            $re = TalentTitle::where('id', $data['title_id'])->value('name');
            return $re;
        }
    }
}